import request from '@/utils/request'
import { download } from '@/utils/request'

// 修改房屋认证
export function updateHouse(data) {
  return request({
    url: '/businessCore/faUserAuthenticationHouse',
    method: 'put',
    data
  })
}

// 删除房屋认证
export function delHouse(id) {
  return request({
    url: '/businessCore/faUserAuthenticationHouse/' + id,
    method: 'delete'
  })
}

// 导出房屋认证
export function exportHouse(params, fileName) {
  const url = '/businessCore/faUserAuthenticationHouse/export'
  download(
    url,
    params,
    fileName + `_${new Date().getTime()}.xlsx`
  )
}